import Vue from 'vue';
import Router from 'vue-router';

const loginPage = resolve => require(['@/page/common/login-page'], resolve)
const rechargePassword = resolve => require(['@/page/common/recharge-password'], resolve)
const brandList = resolve => require(['@/page/brandManage/brandList'], resolve)
const storeList = resolve => require(['@/page/storeManage/storeList'], resolve)
const storeEdit = resolve => require(['@/page/storeManage/storeEdit'], resolve)
const storeCheck = resolve => require(['@/page/storeManage/storeCheck'], resolve)
const userList = resolve => require(['@/page/userManage/userList'], resolve)
const userDetail = resolve => require(['@/page/userManage/userDetail'], resolve)
const userAdd = resolve => require(['@/page/userManage/userAdd'], resolve)
const couponList = resolve => require(['@/page/couponManage/couponList'], resolve)
const userDesignList = resolve => require(['@/page/userManage/userDesignList'], resolve)
const goodList = resolve => require(['@/page/goodManage/goodList'], resolve)
const sortList = resolve => require(['@/page/goodManage/sortList'], resolve)
const orderList = resolve => require(['@/page/orderManage/orderList'], resolve)
const orderDetail = resolve => require(['@/page/orderManage/orderDetail'], resolve)
const verificationList = resolve => require(['@/page/verificationManage/verificationList'], resolve)
const verificationDetail = resolve => require(['@/page/verificationManage/verificationDetail'], resolve)
const noticeList = resolve => require(['@/page/noticeManage/noticeList'], resolve)
const noticeDetail = resolve => require(['@/page/noticeManage/noticeDetail'], resolve)
const viewList = resolve => require(['@/page/noticeManage/viewList'], resolve)
const viewDetail = resolve => require(['@/page/noticeManage/viewDetail'], resolve)
const bannerList = resolve => require(['@/page/bannerManage/bannerList'], resolve)
const bannerEdit = resolve => require(['@/page/bannerManage/bannerEdit'], resolve)
const teamList = resolve => require(['@/page/teamManage/teamList'], resolve)
const teamEdit = resolve => require(['@/page/teamManage/teamEdit'], resolve)
const introduce = resolve => require(['@/page/teamManage/introduce'], resolve)
const goodEdit = resolve => require(['@/page/goodManage/goodEdit'], resolve)
const goodCheck = resolve => require(['@/page/goodManage/goodCheck'], resolve)
const couponEdit = resolve => require(['@/page/couponManage/couponEdit'], resolve)
const couponCheck = resolve => require(['@/page/couponManage/couponCheck'], resolve)
const bannerCheck = resolve => require(['@/page/bannerManage/bannerCheck'], resolve)
const userDesignAdd = resolve => require(['@/page/userManage/userDesignAdd'], resolve)
const goodCouponDetail = resolve => require(['@/page/goodManage/goodCouponDetail'], resolve)
const roleList = resolve => require(['@/page/systemManage/roleList'], resolve)
const roleEdit = resolve => require(['@/page/systemManage/roleEdit'], resolve)
const accountList = resolve => require(['@/page/systemManage/accountList'], resolve)
const accountEdit = resolve => require(['@/page/systemManage/accountEdit'], resolve)
const brandStoreList = resolve => require(['@/page/storeManage/brandStoreList'], resolve)
const brandStoreEdit = resolve => require(['@/page/storeManage/brandStoreEdit'], resolve)

Vue.use(Router)
export default new Router({
  mode: 'history',
  base: '/sys/',
  routes: [
    {
      path: '/loginPage',
      name: 'loginPage',
      component: loginPage
    },
    {
      path: '/rechargePassword',
      name: 'rechargePassword',
      component: rechargePassword
    },
    {
      path: '/',
      name: 'brandList',
      component: brandList
    },
    {
      path: '/storeList',
      name: 'storeList',
      component: storeList
    },
    {
      path: '/storeEdit',
      name: 'storeEdit',
      component: storeEdit
    },
    {
      path: '/storeCheck',
      name: 'storeCheck',
      component: storeCheck
    },
    {
      path: '/userList',
      name: 'userList',
      component: userList
    },
    {
      path: '/roleList',
      name: 'roleList',
      component: roleList
    },
    {
      path: '/roleEdit',
      name: 'roleEdit',
      component: roleEdit
    },
    {
      path: '/accountList',
      name: 'accountList',
      component: accountList
    },
    {
      path: '/accountEdit',
      name: 'accountEdit',
      component: accountEdit
    },
    {
      path: '/userDetail',
      name: 'userDetail',
      component: userDetail
    },
    {
      path: '/userAdd',
      name: 'userAdd',
      component: userAdd
    },
    {
      path: '/couponList',
      name: 'couponList',
      component: couponList
    },
    {
      path: '/userDesignList',
      name: 'userDesignList',
      component: userDesignList
    },
    {
      path: '/goodList',
      name: 'goodList',
      component: goodList
    },
    {
      path: '/sortList',
      name: 'sortList',
      component: sortList
    },
    {
      path: '/orderList',
      name: 'orderList',
      component: orderList
    },
    {
      path: '/orderDetail',
      name: 'orderDetail',
      component: orderDetail
    },
    {
      path: '/verificationList',
      name: 'verificationList',
      component: verificationList
    },
    {
      path: '/verificationDetail',
      name: 'verificationDetail',
      component: verificationDetail
    },
    {
      path: '/noticeList',
      name: 'noticeList',
      component: noticeList
    },
    {
      path: '/noticeDetail',
      name: 'noticeDetail',
      component: noticeDetail
    },
    {
      path: '/viewList',
      name: 'viewList',
      component: viewList
    },
    {
      path: '/viewDetail',
      name: 'viewDetail',
      component: viewDetail
    },
    {
      path: '/bannerList',
      name: 'bannerList',
      component: bannerList
    },
    {
      path: '/bannerEdit',
      name: 'bannerEdit',
      component: bannerEdit
    },
    {
      path: '/teamList',
      name: 'teamList',
      component: teamList
    },
    {
      path: '/introduce',
      name: 'introduce',
      component: introduce
    },
    {
      path: '/goodEdit',
      name: 'goodEdit',
      component: goodEdit
    },
    {
      path: '/goodCheck',
      name: 'goodCheck',
      component: goodCheck
    },
    {
      path: '/couponEdit',
      name: 'couponEdit',
      component: couponEdit
    },
    {
      path: '/couponCheck',
      name: 'couponCheck',
      component: couponCheck
    },
    {
      path: '/bannerCheck',
      name: 'bannerCheck',
      component: bannerCheck
    },
    {
      path: '/userDesignAdd',
      name: 'userDesignAdd',
      component: userDesignAdd
    },
    {
      path: '/teamEdit',
      name: 'teamEdit',
      component: teamEdit
    },
    {
      path: '/goodCouponDetail',
      name: 'goodCouponDetail',
      component: goodCouponDetail
    },
    {
      path: '/brandStoreList',
      name: 'brandStoreList',
      component: brandStoreList
    },
    {
      path: '/brandStoreEdit',
      name: 'brandStoreEdit',
      component: brandStoreEdit
    }]
})